// axios
import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: `/login`,
    method: 'post',
    message: '登录中...',
    data
  })
}

// 钉钉免密登录
export function getDingTalkToken() {
  return request({
    url: `/getDingTalkToken`,
    method: 'get',
    message: '登录中...',
    version: 'v4'
  })
}
export function getDingUserInfo(params) {
  return request({
    url: `/getDingUserInfo`,
    method: 'get',
    message: '登录中...',
    version: 'v4',
    params
  })
}
